package hhm.android.main

import android.view.View
import android.widget.ImageView
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView

class MachineViewHolder(itemView: View) : RecyclerView.ViewHolder(itemView) {
    lateinit var tvName: TextView
//    lateinit var tvContent: TextView
    lateinit var iv: ImageView

    constructor(itemView: View, viewType: Int) : this(itemView) {
        if (viewType == 2) {
//            tv = itemView.findViewById(R.id.item_three_fragment_tv)
//            iv = itemView.findViewById(R.id.item_three_fragment_iv)

            iv = itemView.findViewById(R.id.item_machine_list_iv)
            tvName = itemView.findViewById(R.id.item_machine_list_tv_name)
//            tvContent = itemView.findViewById(R.id.item_machine_list_tv_content)
        }
    }
}